﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="frmTipoProjetista.ascx.cs" Inherits="QFD.View.TipoProjetista.frmTipoProjetista" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<ext:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</ext:ScriptManagerProxy>

<script type="text/javascript">
    var abreTelaTipoProjetista = function() {
    var WinFrmTipoProjetista = <%= WinFrmTipoProjetista.ClientID %>;
        WinFrmTipoProjetista.show();
    }
</script>

<ext:Window ID="WinFrmTipoProjetista" runat="server" Collapsible="false" Icon="UserAdd" Title="Cadastro de Tipos Projetistas" ShowOnLoad="false" Width="400" Height="200" Resizable="false">
    <TopBar>
        <ext:Toolbar ID="ToolBar1" runat="server">
            <Items>
                <ext:ToolbarButton ID="btnSave" Icon="Disk" runat="server">
                    <ToolTips>
                        <ext:ToolTip ID="ToolTip1" runat="server" Title="Salvar Tipo Projetista">
                        </ext:ToolTip>
                    </ToolTips>
                    <AjaxEvents>
                        <Click OnEvent="SaveTipoProjetista" Before="var valid= #{StatusForm}.getForm().isValid(); if(valid){#{FormStatusBar}.showBusy('Aguarde...');} return valid;">
                            <EventMask ShowMask="true" MinDelay="1000" Target="CustomTarget" CustomTarget="={#{StatusForm}.getEl()}" />
                        </Click>
                    </AjaxEvents>
                </ext:ToolbarButton>
                <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server" />
                <ext:ToolbarButton ID="btnClose" runat="server" Icon="DoorIn">
                    <Listeners>
                        <Click Handler="#{WinFrmTipoProjetista}.hide(null);" />
                    </Listeners>
                    <AjaxEvents>
                        <Click OnEvent="CloseTipoProjetista" />
                    </AjaxEvents>
                </ext:ToolbarButton>
            </Items>
        </ext:Toolbar>
    </TopBar>

    <Body>
    <ext:Hidden ID="txt_CDTipoProjetista" runat="server"></ext:Hidden>
        <ext:FitLayout ID="FitLayout1" runat="server">
            <ext:FormPanel ID="StatusForm" runat="server" LabelWidth="75" Width="350" ButtonAlign="Right"
                Border="false" BodyStyle="padding:10px 10px 0;">
                <Defaults>
                    <ext:Parameter Name="Anchor" Value="95%" />
                    <ext:Parameter Name="SelectOnFocus" Value="true" Mode="Raw" />
                    <ext:Parameter Name="MsgTarget" Value="side" />
                    <ext:Parameter Name="LabelSeparator" Value="" />
                </Defaults>
                <Body>
                    <ext:FormLayout ID="FormLayout1" runat="server" LabelAlign="Top">
                        <ext:Anchor>
                            <ext:TextField ID="txtDSTipoProjetista" runat="server" FieldLabel="Descrição" AllowBlank="false" BlankText="Descrição é requerida!" />
                        </ext:Anchor>
                    </ext:FormLayout>
                </Body>
            </ext:FormPanel>
        </ext:FitLayout>
    </Body>
    
    <BottomBar>
        <ext:StatusBar ID="FormStatusBar" runat="server" DefaultText="Ready">
            <Plugins>
                <ext:ValidationStatus ID="ValidationStatus1" runat="server" FormPanelID="StatusForm" ValidIcon="Accept" ErrorIcon="Exclamation" />
            </Plugins>
        </ext:StatusBar>
    </BottomBar>
    
</ext:Window>